import httpRequest from '../utils/httpRequest'
export default {
    //获取用户列表
    getUserList(params) {
        return httpRequest.get('/user', params)
    },
    //用户树
    getTree(id) {
        return httpRequest.get(`/user/baseOrgTreeNode/${id}`)
    },
    //获取部门树的根
    getTreeRoot(data) {
        return httpRequest.get('/user/baseOrgTreeRoot', data)
    },
    //获取用户标签
    getUserLables(id) {
        return httpRequest.get(`/user/label/${id}`)
    },
    //用户关联标签
    setUserLables(data) {
        return httpRequest.put('/user/label', data)
    },
    //获取组织下用户
    getOrganizationList(params){
        return httpRequest.get(`/user/baseOrg/${params.id}`, {})
    }
}